package com.heima.estatemanagement.mapper;

import com.github.pagehelper.Page;
import com.heima.estatemanagement.domain.Community;
import com.heima.estatemanagement.domain.TbParking;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;
import java.util.Map;

/**
 * @author 86191
 * @description 针对表【tb_parking(车位表)】的数据库操作Mapper
 * @createDate 2022-12-22 17:07:35
 * @Entity com.heima.estatemanagement.domain.TbParking
 */
@Repository
public interface TbParkingMapper extends Mapper<TbParking> {

    public Page<TbParking> search(Map searchMap);

    int parkingCount(Map map);   //分页计算总数

    public List<TbParking> selectAll();

    public boolean delById(int id);

    public String delFindByStatus(int id);

    public int add(TbParking parking);

    public TbParking findById(Integer id);

    public int update(TbParking parking);


    public List<TbParking> selectByCommunityId(int communityId);
}




